var config = {
    db: {
        type: 'mongodb',
        host: 'dbhost',
        uid: 'dbuser',
        pwd: 'password',
        db: 'seckill',

        toString() {
            return `${this.type}://${this.uid}:${this.pwd}@${this.host}/${this.db}`
        }
    },
    redis: {
        host: '127.0.0.1',
        port: '6379',
        database: 10,
    },
}

module.exports = config;